<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;">
		<title>小螺号——购物车</title>
	</head>

	<link rel="stylesheet" href="font/iconfont.css" />
	<script type="text/javascript" src="dist/lib/jquery-2.1.4.js"></script>
<link rel="stylesheet" href="js/layui/css/modules/layer/default/layer.css" />
<script type="text/javascript" src="js/layui/lay/modules/layer.js" ></script>
	<style>
.wy-header-icon-right i {margin: 0px;}
.mminput{ border: 1px solid #ddd;height:35px;line-height:35px;outline: none; border-radius:3px;padding-left:15px; display: block; margin: 5px auto;}
.passbtn{ background-color:#007AFF; padding:10px 20px; border:none; margin: 0 auto; display: block; color: #fff;}
.active{ background-color: red;}
.hh a{ display: block; padding: 10px;}

	</style>
	<body>

	</body>
<script>
//prompt层

$(".editorpass").on('click',function(){
layer.open({
  type: 1,
  title:'修改密码',
  skin: 'layui-layer-rim', //加上边框
  area: ['350px', '280px'], //宽高
  content: '<p><input type="text" id="password-old" class="mminput" placeholder="请输入旧密码"/></p><p><input type="text" class="mminput" id="password-new" placeholder="请设置新密码"/></p><p><input type="text" class="mminput" name="password-check" placeholder="再次输入新密码"/></p><p><button onclick="passbtn()" class="passbtn" type="button" value="">确认</button></p>'
});
 	});
  function passbtn(){
  if ($("#password-new").val()=='' || $("#password-check").val()=='') {
 	
 	layer.msg('新密码不能为空');
 	$("#password-new").focus();
	return false;

 }

   
 if ($("#password-new").val() == $("#password-old").val()) {
 	
 	layer.msg('新密码与旧密码一致,请重新输入');
 	return false;
 }
   
  
 /*else
 {
 	
 }*/	
 	
 }
 

 


</script>
</html>